using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

public class BaseUI : MonoBehaviour
{
    public virtual void ShowMe()
    {
        
    }
    public virtual void HideMe()
    {
        
    }

    public Coroutine DelayAction(UnityAction delayAction, float delayTime)
    {
        return StartCoroutine(DelayIE(delayAction, delayTime));
    }

    IEnumerator DelayIE(UnityAction delayAction, float delayTime)
    {
        yield return new WaitForSeconds(delayTime);
        
        delayAction?.Invoke();
    }
}
